package cn.iocoder.yudao.module.erp.dal.dataobject.purchaseplan.purchaseengineeringdetail;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 工程采购计划明细 DO
 *
 * @author 芋道源码
 */
@TableName("erp_purchase_engineering_detail")
@KeySequence("erp_purchase_engineering_detail_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PurchaseEngineeringDetailDO extends BaseDO {

    /**
     * 采购详情ID
     */
    @TableId
    private Long id;
    /**
     * 采购计划ID
     */
    private Long planId;
    /**
     * 采购计划code
     */
    private String planNo;
    /**
     * 采购类型SERVICE/EQUIPMENT/NGINEERING/MATERIAL/DIRECT/MINOR
     *
     * 枚举 {@link TODO purchase_type 对应的类}
     */
    private String purchaseType;
    /**
     * 采购内容(详细)
     */
    private String purchaseContent;
    /**
     * 预估采购数量
     */
    private Integer estimatedQuantity;
    /**
     * 总价限价(单位：万元，人民币)
     */
    private BigDecimal totalPriceLimit;
    /**
     * 备注
     */
    private String remark;


}